Skip to content

Separate parameters list with blank lines #533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 11, 2019
Merged

Separate parameters list with blank lines #533

merged 1 commit into from
Jun 11, 2019

Conversation

per1234
Copy link
Collaborator

@per1234 per1234 commented Feb 6, 2019

When there were multiple parameters with longer descriptions, the Parameters section ended up looking like a wall of text. Separating each parameter with a blank line makes it easier to read and faster to find the information you're searching for.

This format is also easier for the collaborators to work with because they don't need to remember to add the + at the end of the line. There are currently several reference pages where that was forgotten.

This is a proposal to change the official reference style guide. If accepted, I will update the formatting of all reference pages accordingly.

I had also considered formatting the parameters section as a list. That looks quite nice also, but in the end I decided I slightly preferred the blank lines.

Example of the previous formatting being problematic:
https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt#_parameters

Before:
before

After:
after

When there were multiple parameters with longer descriptions, the Parameters section ended up looking like a wall of text. Separating each parameter with a blank line makes it easier to read and faster to find the information you're searching for.

This format is also easier for the collaborators to work with because they don't need to remember to add the ` +` at the end of the line. There are currently several reference pages where that was forgotten.

I had also considered formatting the parameters section as a list. That looks quite nice also, but in the end I decided I slightly preferred the blank lines.

Example of the previous formatting being problematic:
https://www.arduino.cc/reference/en/language/functions/external-interrupts/attachinterrupt#_parameters
@smellai smellai merged commit d652688 into arduino:master Jun 11, 2019
@per1234 per1234 deleted the new-parameters-section-format branch June 25, 2019 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants